package com.houkunlin.wake.lan.host;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 实体类：主机信息
 *
 * @author HouKunLin
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("host_info")
public class HostInfo implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 主机名称
     */
    private String name;
    /**
     * MAC 地址
     */
    private String mac;
    /**
     * 网关地址（默认：255.255.255.255）
     */
    private String gateway;
    /**
     * 端口（默认：9）
     */
    private Integer port;
    /**
     * 备注
     */
    private String remark;
    /**
     * 逻辑删除
     */
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private Boolean deleted;
    /**
     * 创建时间
     */
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private LocalDateTime createdTime;
    /**
     * 修改时间
     */
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private LocalDateTime updatedTime;
}
